package org.yuankan.yuankanmanagerserver.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.yuankan.yuankanmanagerserver.service.AiListService;


@RestController
@RequestMapping("/ai")
public class AiListController {

    @Autowired
    private AiListService aiListService;


    @RequestMapping(value = "/deepseek")
    public String callDeepseekApi(@RequestParam String input) {

        input = input.replace(" ", "");
        input="你好";

        return aiListService.callDeepseekApi(input);
    }
    @RequestMapping(value = "/deepseek1")
    public String callDeepseekApi1() {

     String input = "你好";

        return aiListService.callDeepseekApi(input);
    }
    @RequestMapping("/wenxin")
    public String callWenxinApi(@RequestParam String input) {
        return aiListService.callWenxinApi(input);
    }
    @RequestMapping("/qianfan")
    public String callQianFanApi( @RequestParam("input") String input) {
        System.out.println(input);

        return aiListService.callQianFanApi(input);
    }


}
